﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;
using Engine;

namespace Game
{
    class Menu : GameScreen
    {
        SpriteFont font;
        PlayerIndex pIndex;

        public override void LoadContent()
        {
            base.LoadContent();
            font = Content.Load<SpriteFont>("font");

            Initialize();
        }

        public override void HandleInput()
        {
            if (Input.isKeyPressed(Keys.Enter) || Input.isButtonPressed(Buttons.A, null, out pIndex))
            {
                ScreenManager.AddScreen(new Level1());
            }
        }

        public override void Update(GameTime gametime)
        {
            base.Update(gametime);
        }

        public override void Draw(SpriteBatch spriteBatch, GameTime gameTime)
        {
            base.Draw(spriteBatch,gameTime);
          
            spriteBatch.Begin();

            spriteBatch.DrawString(font, "Press Enter ", new Vector2(500, 500), Color.White);
            
            spriteBatch.End();
        }

        public override void UnloadContent()
        {
            base.UnloadContent();
        }
    }
}
